﻿#pragma once
#include "maths.h"
#include "win32.h"
#include "macro.h"

const int WINDOW_HEIGHT = 600;
const int WINDOW_WIDTH = 800;

void rasterize_singlethread(Vector4* clipcoord_attri, unsigned char* framebuffer, float* zbuffer);
void rasterize_multithread(Vector4* clipcoord_attri, unsigned char* framebuffer, float* zbuffer);
void draw_triangles(unsigned char* framebuffer, float* zbuffer,int nface);